#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main1()
{
    int a = 0;
    scanf("%d", &a);
    int i = 0;
    int j = 0;
    for (i = 1; i <= a; i++)
    {

        for (j = 1; j <= a; j++)
        {
            if (i == 1 || j == 1 || i == a || j == a)
                printf("* ");
            else 
                printf("  ");
        }
        printf("\n");
    }
    return 0;
}


int main2()
{
    int arr1[10] = { 0 };
    int arr2[10] = { 0 };
    for (int a = 0; a < 10; a++)
    {
        scanf("%d", &arr1[a]);
    }
    for (int i = 0; i < 10; i++)
    {
        int j = 9 - i;
        arr2[i] = arr1[j];
        printf("%d ", arr2[i]);
    }
    return 0;
}


int main3()
{
    int m = 0;
    int n = 0;
    scanf("%d%d", &m, &n);
    int arr1[10][10] = { 0 };
    for (int i = 0; i < m; i++)
    {
        for(int j = 0; j < n; j++)
        scanf("%d", &arr1[i][j]);
    }
    for (int i = 0; i < n; i++)
    {
        for (int j = 0; j < m; j++)
            printf("%d ", arr1[j][i]);
        printf("\n");
    }
    return 0;
}


int main4()
{
    int arr[10] = { 0 };
    int sum = 0;
    for (int i = 0; i < 10; i++)
    {
        scanf("%d", &arr[i]);
        sum += arr[i];
    }
    double avg = sum / 10.0;
    printf("avg=%lf", avg);
    return 0;
}


int main()
{
    int arr1[5] = { 1,2,3,4,5 };
    int arr2[5] = { 6,7,8,9,0 };
    int arr3[5] = { 0 };
    int i = 0;
    for ( i = 0; i < 5; i++)
    {
        arr3[i] = arr1[i];
        arr1[i] = arr2[i];
        arr2[i] = arr3[i];
    }
    for (i = 0; i < 5; i++)
    {
        printf("%d", arr1[i]);
    }
    printf("\n");
    for (i = 0; i < 5; i++)
    {
        printf("%d", arr2[i]);
    }
   
    return 0;
}